package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MesInspContentMapper;
import com.ruoyi.system.domain.MesInspContent;
import com.ruoyi.system.service.IMesInspContentService;

/**
 * 方案内容Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
@Service
public class MesInspContentServiceImpl implements IMesInspContentService 
{
    @Autowired
    private MesInspContentMapper mesInspContentMapper;

    /**
     * 查询方案内容
     * 
     * @param id 方案内容主键
     * @return 方案内容
     */
    @Override
    public MesInspContent selectMesInspContentById(Integer id)
    {
        return mesInspContentMapper.selectMesInspContentById(id);
    }

    /**
     * 查询方案内容列表
     * 
     * @param mesInspContent 方案内容
     * @return 方案内容
     */
    @Override
    public List<MesInspContent> selectMesInspContentList(MesInspContent mesInspContent)
    {
        return mesInspContentMapper.selectMesInspContentList(mesInspContent);
    }

    /**
     * 新增方案内容
     * 
     * @param mesInspContent 方案内容
     * @return 结果
     */
    @Override
    public int insertMesInspContent(MesInspContent mesInspContent)
    {
        return mesInspContentMapper.insertMesInspContent(mesInspContent);
    }

    /**
     * 修改方案内容
     * 
     * @param mesInspContent 方案内容
     * @return 结果
     */
    @Override
    public int updateMesInspContent(MesInspContent mesInspContent)
    {
        return mesInspContentMapper.updateMesInspContent(mesInspContent);
    }

    /**
     * 批量删除方案内容
     * 
     * @param ids 需要删除的方案内容主键
     * @return 结果
     */
    @Override
    public int deleteMesInspContentByIds(Integer[] ids)
    {
        return mesInspContentMapper.deleteMesInspContentByIds(ids);
    }

    /**
     * 删除方案内容信息
     * 
     * @param id 方案内容主键
     * @return 结果
     */
    @Override
    public int deleteMesInspContentById(Integer id)
    {
        return mesInspContentMapper.deleteMesInspContentById(id);
    }
}
